----------------------------------------------------------------------------------------------------------------------------------
      name:  <unnamed>
       log:  C:\Users\ericzou\Dropbox\replicate_smokelabor/2_analysis/output_logs/appendix_table4.log
  log type:  text
 opened on:  24 Jun 2022, 10:24:23

. 
.         use "$Rep_smokelabor/1_build/regdata/county_year.dta", clear 

.         local tbl_settings_log format(%6.3f) parentheses(stderr) asterisk()

.         local tbl_settings_pmil format(%6.1f) parentheses(stderr) asterisk()

. 
.         reghdfe ln_irsmove_INexempt     hms_deep [aw=irs_exempt], a(countyfip fe_divisionyr) vce(cluster countyfip)
(MWFE estimator converged in 4 iterations)

HDFE Linear regression                            Number of obs   =     37,266
Absorbing 2 HDFE groups                           F(   1,   3108) =       0.26
Statistics robust to heteroskedasticity           Prob > F        =     0.6104
                                                  R-squared       =     0.9994
                                                  Adj R-squared   =     0.9994
                                                  Within R-sq.    =     0.0000
Number of clusters (countyfip) =      3,109       Root MSE        =     3.9861

                          (Std. Err. adjusted for 3,109 clusters in countyfip)
------------------------------------------------------------------------------
             |               Robust
ln_i~Nexempt |      Coef.   Std. Err.      t    P>|t|     [95% Conf. Interval]
-------------+----------------------------------------------------------------
    hms_deep |   -.004507    .008845    -0.51   0.610    -.0218496    .0128357
       _cons |   1283.047   .1762067  7281.49   0.000     1282.701    1283.392
------------------------------------------------------------------------------

Absorbed degrees of freedom:
-------------------------------------------------------+
   Absorbed FE | Categories  - Redundant  = Num. Coefs |
---------------+---------------------------------------|
     countyfip |      3109        3109           0    *|
 fe_divisionyr |       108           0         108     |
-------------------------------------------------------+
* = FE nested within cluster; treated as redundant for DoF computation

.         regsave using "$Rep_smokelabor/2_analysis/output_tables/appendix_table4.dta",  table(in_migration, `tbl_settings_log') r
> eplace
file C:\Users\ericzou\Dropbox\replicate_smokelabor/2_analysis/output_tables/appendix_table4.dta saved

.         
.         reghdfe ln_irsmove_OUTexempt    hms_deep [aw=irs_exempt], a(countyfip fe_divisionyr) vce(cluster countyfip)
(MWFE estimator converged in 4 iterations)

HDFE Linear regression                            Number of obs   =     37,268
Absorbing 2 HDFE groups                           F(   1,   3108) =       0.05
Statistics robust to heteroskedasticity           Prob > F        =     0.8260
                                                  R-squared       =     0.9995
                                                  Adj R-squared   =     0.9995
                                                  Within R-sq.    =     0.0000
Number of clusters (countyfip) =      3,109       Root MSE        =     3.7610

                          (Std. Err. adjusted for 3,109 clusters in countyfip)
------------------------------------------------------------------------------
             |               Robust
ln_i~Texempt |      Coef.   Std. Err.      t    P>|t|     [95% Conf. Interval]
-------------+----------------------------------------------------------------
    hms_deep |  -.0019308    .008782    -0.22   0.826    -.0191499    .0152883
       _cons |   1266.485   .1749517  7239.06   0.000     1266.142    1266.828
------------------------------------------------------------------------------

Absorbed degrees of freedom:
-------------------------------------------------------+
   Absorbed FE | Categories  - Redundant  = Num. Coefs |
---------------+---------------------------------------|
     countyfip |      3109        3109           0    *|
 fe_divisionyr |       108           0         108     |
-------------------------------------------------------+
* = FE nested within cluster; treated as redundant for DoF computation

.         regsave using "$Rep_smokelabor/2_analysis/output_tables/appendix_table4.dta",  table(out_migration, `tbl_settings_log') 
> append
file C:\Users\ericzou\Dropbox\replicate_smokelabor/2_analysis/output_tables/appendix_table4.dta saved

.         
.         reghdfe ln_irs_exempt                   hms_deep , a(countyfip fe_divisionyr) vce(cluster countyfip)
(MWFE estimator converged in 4 iterations)

HDFE Linear regression                            Number of obs   =     37,296
Absorbing 2 HDFE groups                           F(   1,   3108) =       0.42
Statistics robust to heteroskedasticity           Prob > F        =     0.5163
                                                  R-squared       =     0.9985
                                                  Adj R-squared   =     0.9984
                                                  Within R-sq.    =     0.0000
Number of clusters (countyfip) =      3,109       Root MSE        =     5.9533

                          (Std. Err. adjusted for 3,109 clusters in countyfip)
------------------------------------------------------------------------------
             |               Robust
ln_irs_exe~t |      Coef.   Std. Err.      t    P>|t|     [95% Conf. Interval]
-------------+----------------------------------------------------------------
    hms_deep |   .0040565   .0062499     0.65   0.516    -.0081978    .0163108
       _cons |   1013.729   .1584234  6398.86   0.000     1013.418    1014.039
------------------------------------------------------------------------------

Absorbed degrees of freedom:
-------------------------------------------------------+
   Absorbed FE | Categories  - Redundant  = Num. Coefs |
---------------+---------------------------------------|
     countyfip |      3109        3109           0    *|
 fe_divisionyr |       108           0         108     |
-------------------------------------------------------+
* = FE nested within cluster; treated as redundant for DoF computation

.         regsave using "$Rep_smokelabor/2_analysis/output_tables/appendix_table4.dta",  table(tax_exemptions, `tbl_settings_log')
>  append
file C:\Users\ericzou\Dropbox\replicate_smokelabor/2_analysis/output_tables/appendix_table4.dta saved

.         
.         preserve 

.                 use "$Rep_smokelabor/2_analysis/output_tables/appendix_table4.dta", replace

.                 drop if var == "r2"
(1 observation deleted)

.                 drop if var == "_id"
(0 observations deleted)

.                 drop if strpos(var, "_cons_") > 0
(2 observations deleted)

.                 ingap 3

.                 list , sep(0)

     +--------------------------------------------------+
     |             var   in_mig~n   out_mi~n   tax_ex~s |
     |--------------------------------------------------|
  1. |   hms_deep_coef     -0.005     -0.002      0.004 |
  2. | hms_deep_stderr    (0.009)    (0.009)    (0.006) |
  3. |                                                  |
  4. |               N     37,266     37,268     37,296 |
     +--------------------------------------------------+

.                 saveold "$Rep_smokelabor/2_analysis/output_tables/appendix_table4.dta", replace
(saving in Stata 13 format)
(FYI, saveold has options version(12) and version(11) that write files in older Stata formats)
file C:\Users\ericzou\Dropbox\replicate_smokelabor/2_analysis/output_tables/appendix_table4.dta saved

.         restore 

.         
. log close
      name:  <unnamed>
       log:  C:\Users\ericzou\Dropbox\replicate_smokelabor/2_analysis/output_logs/appendix_table4.log
  log type:  text
 closed on:  24 Jun 2022, 10:24:24
----------------------------------------------------------------------------------------------------------------------------------
